package com.uniriho.lxr5002_service;


import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import com.uniriho.lxr5002_service.moudel.GPSMoudel;
import com.uniriho.lxr5002_service.utils.LogUtils;

public class ServiceCrack extends Service{

    private GPSMoudel gpsMoudel;

    @Override
    public IBinder onBind(Intent arg0) {
        return null;
    }

    @Override
    public void onCreate(){
        super.onCreate();
        LogUtils.debug("auto_xxx","Service 创建成功");
        gpsMoudel = new GPSMoudel(this);
    }

    @Override
    public int onStartCommand(Intent intent, int flags, int startId) {
        LogUtils.debug("auto_xxx","Service 启动成功");
        gpsMoudel.startGPS();
        return super.onStartCommand(intent, flags, startId);
    }

    @Override
    public boolean stopService(Intent name) {
        LogUtils.debug("auto_xxx","Service 停止成功");
        return super.stopService(name);
    }
}